﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.franchise.transactions {
    import Engine.Transactions.*;

    public class TUpdateFranchiseName extends Transaction {

        private var m_franchiseType:String;
        private var m_franchiseName:String;

        public function TUpdateFranchiseName(_arg1:String, _arg2:String){
            this.m_franchiseType = _arg1;
            this.m_franchiseName = _arg2;
        }
        override public function perform():void{
            signedCall("FranchiseService.updateFranchiseName", this.m_franchiseType, this.m_franchiseName);
        }
        override protected function onComplete(_arg1:Object):void{
            if (((_arg1.hasOwnProperty("name")) && (!((_arg1["name"] == this.m_franchiseName))))){
                Global.franchiseManager.model.setFranchiseName(_arg1["name"], this.m_franchiseType);
            };
        }

    }
}//package Modules.franchise.transactions 
